﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;


namespace ExpenseSystem.Model
{
    [TableName("SAM_PERIODPAY")]
    public class PeriodPayModel : NormalModel
    {
        private long _orderid;
        private long _employeeid;
        private long _orderdetailid;
        private long _productionid;
        private string _period;
        private decimal _amount;
        public virtual long OrderId
        {
            get { return _orderid; }
            set
            {
                if (_orderid == value)
                    return;
                _orderid = value;
                if (!PropertyUpdated.Contains("OrderId"))
                    PropertyUpdated.Add("OrderId");
            }
        }
        public virtual long EmployeeId
        {
            get { return _employeeid; }
            set
            {
                if (_employeeid == value)
                    return;
                _employeeid = value;
                if (!PropertyUpdated.Contains("EmployeeId"))
                    PropertyUpdated.Add("EmployeeId");
            }
        }
        public virtual long OrderDetailId
        {
            get { return _orderdetailid; }
            set
            {
                if (_orderdetailid == value)
                    return;
                _orderdetailid = value;
                if (!PropertyUpdated.Contains("OrderDetailId"))
                    PropertyUpdated.Add("OrderDetailId");
            }
        }
        public virtual long ProductionId
        {
            get { return _productionid; }
            set
            {
                if (_productionid == value)
                    return;
                _productionid = value;
                if (!PropertyUpdated.Contains("ProductionId"))
                    PropertyUpdated.Add("ProductionId");
            }
        }
        public virtual string Period
        {
            get { return _period; }
            set
            {
                if (_period == value)
                    return;
                _period = value;
                if (!PropertyUpdated.Contains("Period"))
                    PropertyUpdated.Add("Period");
            }
        }
        public virtual decimal Amount
        {
            get { return _amount; }
            set
            {
                if (_amount == value)
                    return;
                _amount = value;
                if (!PropertyUpdated.Contains("Amount"))
                    PropertyUpdated.Add("Amount");
            }
        }
    }
}
